# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=obexstress
pkgver=0.1
pkgrel=7
pkgdesc='Script for testing remote OBEX service for some potential vulnerabilities.'
url='http://bluetooth-pentest.narod.ru/'
groups=('blackarch' 'blackarch-bluetooth')
license=('GPL')
depends=('python2' 'lightblue' 'python2-pybluez')
arch=('any')
source=('http://bluetooth-pentest.narod.ru/software/obexstress.py')
sha512sums=('a0a84900c7a932da0d2a5aed4c4e85a8d15928b8a98c118b4aaa18813a2841cdf94039a1f6aed5600ae90783df3f97ed2a216c78edc922f8d27a809db1cbeb9c')

prepare() {
  sed -i 's|/usr/bin/python|/usr/bin/env python2|' "$pkgname.py"
}

package() {
  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
}

